#ifndef tmMainWindow_h__
#define tmMainWindow_h__

#include "./tmInclude.h"
#include "./tmGridMenu.h"

#include "./tmHeaderBar.h"
#include "./tmMusicBar.h"
class tmTimer; 
class tmMainWindow : public  tmControl
{
	public:
		tmMainWindow();
		~tmMainWindow();
		virtual GLES::Bool createFrom(HWND hwnd,GLES::RectI& rect);
		virtual GLES::Void draw(GLES::Painter* painter = NULL);
		virtual GLES::Void onTimer(tmTimer* timer);
		virtual GLES::Void onInput(int x,int y,InputType state,GLES::RectI* parent = NULL);
	private:
		tmHeaderBar	_headerBar;
		tmMusicBar  _musicBar;
		GLES::Painter*    _painter;
		GLES::Canvas*    _canvas;
		GLES::Canvas* _screen;
		tmGridMenu _menu;
		GLES::Pict	_bg;
};
#endif // tmMainWindow_h__